package com.day0906;

import java.util.Scanner;

public class Test3 {
    public static void main(String[] args) {
//        从控制台输入一个值
        System.out.print("请输入第一个值：");
        Scanner input = new Scanner(System.in);
        int num1 = input.nextInt();
        System.out.print("请输入第二个值：");
        int num2 = input.nextInt();
        int sum = num1 + num2;
        System.out.println("和为：" + sum);
    }
}
